<template>
	<view class="wrap">
		<view class="sale" style="background-size: 100% 100%;background-image: url('');">
			<view class="sale-left">
				<view class="sales-volume">销售额(元)</view>
				<view>30000</view>
			</view>
			<view class="sale-right">
				<view class="profit-margin">利润额(元)</view>
				<view>15000</view>
			</view>
		</view>
		<view class="date-query">
			<view class="title">查询时区</view>
			<view class="content">
				<view  @tap="toggle('date-query')" :style="{color:dateQuery=='选择时间'?'#a0a0a0':'#333'}">{{dateQuery}}</view>
				<cPicker mode='date' @confirm="dateQueryHand" ref="date-query"></cPicker>
			</view>
		</view>
		
		<view class="list-content">
			<view class="content_left">
				<view>租金(元)</view>
				<view class="amount-money">1500</view>
			</view>
			<view class="content_right">
				<view>产品成本(元)</view>
				<view class="amount-money">200</view>
			</view>
		</view>
		<view class="list-content">
			<view class="content_left">
				<view>人员费用(元)</view>
				<view class="amount-money">1500</view>
			</view>
			<view class="content_right">
				<view>物流费用(元)</view>
				<view class="amount-money">200</view>
			</view>
		</view>
		<view class="list-content">
			<view class="content_left">
				<view>常态杂物(元)</view>
				<view class="amount-money">--</view>
			</view>
			<view class="content_right">
				<view>报销费用(元)</view>
				<view class="amount-money">200</view>
			</view>
		</view>
		<view class="list-content">
			<view class="content_left">
				<view>常态杂物(元)</view>
				<view class="amount-money">1500</view>
			</view>
			<view class="content_right">
				<view>报销费用(元)</view>
				<view class="amount-money">200</view>
			</view>
		</view>
		<view class="list-content">
			<view class="content_left">
				<view>常态杂物(元)</view>
				<view class="amount-money">--</view>
			</view>
			<view class="content_right">
				<view>报销费用(元)</view>
				<view class="amount-money">--</view>
			</view>
		</view>
		<view class="list-content">
			<view class="content_left">
				<view>杂费(元)</view>
				<view class="amount-money">--</view>
			</view>
			<view class="content_right">
				<view>其他费用(元)</view>
				<view class="amount-money">--</view>
			</view>
		</view>
		<view class="list-content" style="border: 0;">
			<view class="content_left">
				<view>已收款</view>
				<view class="amount-money">--</view>
			</view>
			<view class="content_right">
				<view>未收款</view>
				<view class="amount-money">--</view>
			</view>
		</view>
		<view  class="btn">
			<button>查询</button>
		</view>
		
	</view>
	
</template>

<script>
	import cPicker from "../../components/c-picker/c-picker.vue"
	import {
		picker
	} from "../../components/mixins/picker.js"
	
	export default {
		components: {
			cPicker
		},
				
		data() {
			return {
				dateQuery:'选择时间'	,
			}
		},
		methods:{
			toggle(val) {//开始时间和结束时间
				this.$refs[val].show();
			},
			dateQueryHand(value) {
				this.dateQuery = value.result							
			}
		}
	}
</script>

<style>
	.wrap{
		background-color: #fff;
		border-top: 20rpx solid #EFEEF4;
		padding-top: 35rpx;
	}
	.sale{
		width: 90%;
		height: 120px;
		margin: 0 auto;		
		display: flex;
		justify-content: space-between;
		align-items: center;		
	}
	.sale-left{
		width: 50%;
		height: 70%;
		font-size: 37rpx;
		line-height: 30px;
		text-align: center;
		color: #FFFFFF;		
		border-right: 1px solid #FFFFFF;
	}
	.sale-right{
		width: 50%;
		height: 70%;
		font-size: 37rpx;
		line-height: 30px;
		text-align: center;
		color: #FFFFFF;
	}
	.sales-volume{
		margin-top: 25rpx;
	}
	.profit-margin{
		margin-top: 25rpx;
	}
	.date-query{
		display: flex;
		justify-content: space-between;
		padding: 20rpx 50rpx;
		font-size: 35rpx;
		border-bottom: 7px solid #EFEEF4;
	}
	.list-content{
		display: flex;
		justify-content: space-between;
		padding: 20rpx 50rpx;
		font-size: 30rpx;
		border-bottom: 1px solid #EFEEF4;
	}
	.content_left{
		display: flex;
		width: 50%;		
	}
	.content_right{
		display: flex;
		width: 50%;
	}
	.amount-money{
		padding: 0 10px;
		margin-top: 1px;
	}
	.btn{
		position: relative;
		top: 100rpx;
		width: 70%;
		margin:0 auto;
	}
	.btn button{
		background-color: #F7912C;
		border: 0;
		color: #f4f7ffff;
	}

</style>